package com.zhu.esyblog.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zhu.esyblog.pojo.RespBean;
import com.zhu.esyblog.service.ITagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author stx
 * @since 2022-06-22
 */
@RestController
@RequestMapping("/tags")
public class ArticleTagController {
    @Autowired
    private ITagService tagService;

    @ApiOperation(value = "获取所有文章标签")
    @GetMapping
    public RespBean getAllTags(){
        return tagService.getAllTags();
    }

}
